﻿
namespace XUCore.NetCore.Uploads
{
    /// <summary>
    /// 水印配置
    /// </summary>
    public class WatherSettings
    {
        /// <summary>
        /// 是否打水印
        /// </summary>
        public bool IsWather { get; set; } = false;

        /// <summary>
        /// 水印位置 "left top bottom center right"
        /// </summary>
        public string Position { get; set; } = "center";

        /// <summary>
        /// 水印透明度
        /// </summary>
        public float Opacity { get; set; } = 1f;

        /// <summary>
        /// 图片水印缩放比
        /// </summary>
        public float Scale { get; set; } = 0.1f;

        /// <summary>
        /// 图片水印文件地址（避免文字水印跨平台乱码和不好看的问题，统一用图片水印）
        /// 处理好水印图片即可
        /// </summary>
        public string Image { get; set; }
    }
}

